package com.note7_10;

import java.io.IOException;
import java.net.*;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Server {

	
	public static void main(String[] args) throws IOException {
		ServerSocket ss =  new ServerSocket(8090);
		Wether w = new Wether(32.5,4,2,10);
		System.out.println("服务启动中。。。");
		while(true){
			SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
			Date d = new Date();
			Socket s = ss.accept();
			new WetherThread(w,s,df.format(d)).start();
		}
	}
	
}
